package cn.aran.basic.query;

import lombok.Data;

/**
* @Description: 分页基础类
* @Author: Aran
* @Version: 1.0
* @Date:  2022/6/21 21:23
*/
@Data
public class BaseQuery {
    private Integer currentPage = 1;
    private Integer pageSize = 5;
    // 高级查询关键字
    private String keyword;

    public Integer getStart(){
        return (this.currentPage - 1) * this.pageSize;
    }

}
